package com.service;

/**
 * @description:
 * @projectName:Lambda
 * @see:com.service
 * @author:LXC
 * @createTime:2024/4/15 12:13
 * @version:1.0
 */
public class MyArrayOps {

    public static <T> int countMatching(T[] value,T v){
        int count =0;

        for (int i = 0; i < value.length; i++) {
            if(value[i] == v) count++;
        }
        return count;
    }
}
